package com.guet.user.beans.entity;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 
 * @TableName user
 */
@Data
public class User implements Serializable {
    private static final long serialVersionUID = -436587164994327449L;
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    @NotEmpty(message = "账号不可为空")
    private String userName;

    /**
     * 
     */
    @NotEmpty(message = "密码不可为空")
    private String passWord;

    /**
     * 
     */
    @NotNull(message = "性别不允许为空")
    private Integer sex;

    /**
     * 
     */
    private String motto;


    private String icon;

}